package com.mnxc.gxa.mapper;

import com.mnxc.gxa.entity.Dept;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author mnxc
 * @since 2023-06-29
 */
public interface DeptMapper extends BaseMapper<Dept> {

    @Select("select * from sys_dept")
    List<Dept> getAll();

    boolean deleteDept(Dept dept);

    boolean freezeDept(Dept dept);

    boolean activeDept(Dept dept);

    void operateByIds(List<Long> ids);

    void operate_freezeByIds(List<Long> ids);

    void operate_deleteByIds(List<Long> ids);


}
